package com.pray.praymall.product.dao;

import com.pray.praymall.product.entity.SpuInfoEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * spu信息
 * 
 * @author pray
 * @email pray_cbh@163.com
 * @date 2020-08-29 10:56:49
 */
@Mapper
public interface SpuInfoDao extends BaseMapper<SpuInfoEntity> {

    /**
     * 商品上架后更新状态
     * @param spuId spuId
     * @param code 上架的状态码
     */
    void updateSpuStatus(@Param("spuId") Long spuId, @Param("code") int code);
}
